//
//  User.h
//  itaka
//
//  Created by Robert Soszynski on 1/18/12.
//  Copyright (c) 2012 __MyCompanyName__. All rights reserved.
//

#import <Foundation/Foundation.h>

@protocol UserDelegate <NSObject>
@required
- (void) authenticated;
- (void) authenticationError:(NSString*) error;
@end

@interface User : NSObject {
    id <UserDelegate> delegate;
    
    NSString *username;
    NSString *password;
    NSString *domain;
}
@property (retain, nonatomic) id <UserDelegate> delegate;
@property (retain, nonatomic) NSString *username, *password, *domain;

- (NSString*) login;

- (void) signIn: (NSString*) username: (NSString*) password: (NSString*) domain;
- (void) signOut;

- (void) authentication: (NSString*) login: (NSString*) password;

@end
